package com.itheima.job;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.Properties;

public class Test06 {
    public static void main(String[] args) throws Exception {
        //F:\HEIMA\就业班\Code\day16_class\prop.properties
        Properties prop = new Properties();
        prop.load(new FileReader("day16_class\\prop.properties"));
        Class clazz = Class.forName(prop.getProperty("ClassName"));
        Method method = clazz.getMethod(prop.getProperty("MethodName"));
        method.invoke(clazz.newInstance());

    }
}

